import { ReactElement } from "react";

// 组件 Props
type ComponentProps<U extends boolean, T = any> = U extends true ? {
  [K in keyof T]: T[K]
} & { children: ReactElement } : {
  [K in keyof T]: T[K]
}

export type {
  ComponentProps
}